package com.taozi.question.domain;

import com.taozi.common.annotation.Excel;
import com.taozi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 八股文实体
 *
 * @author taozi
 */
@Data
public class QuestionInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    private String id;

    /**
     * 问题id
     */
    @Excel(name = "问题id")
    private Integer questionId;

    /**
     * 问题
     */
    @Excel(name = "问题")
    private String question;

    /**
     * 回答
     */
    @Excel(name = "回答")
    private String answer;

    /**
     * 问题类型
     */
    @Excel(name = "问题类型")
    private String type;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("questionId", getQuestionId())
                .append("question", getQuestion())
                .append("answer", getAnswer())
                .append("type", getType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
